package com.gxa.uhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * @author: qingyao
 * @date: 12:40 2021/6/5
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Log 操作记录的实体类")
public class Log implements Serializable {
    @ApiModelProperty(name = "id",notes = "主键",dataType = "Integer",required = false)
    private Integer id;
    @ApiModelProperty(name = "type",notes = "操作类型",dataType = "String",required = true)
    private String type;
    @ApiModelProperty(name = "doTime(操作时间)",notes = "操作时间",dataType = "Timestamp",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss.0",timezone = "GMT+8")
    private Timestamp doTime;
    @ApiModelProperty(name = "adminId",notes = "管理员id",dataType = "Integer",required = true)
    private Integer adminId;
    @ApiModelProperty(name = "context",notes = "操作内容",dataType = "String",required = true)
    private String context;

    private String adminNickName;
}
